<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;

Route::get('/', function () {
    return redirect()->to('pc');
});
Route::group([
    'prefix' => 'pc',
    'namespace' => 'App\Http\Controllers\PC'
], function (Router $router) {
    $router->get('/', function () {
        return view('index');
    })->name('pc');
    $router->get('goods', function () {
        return view('goods');
    })->name('goods');
    $router->get('shops', function () {
        return view('shops');
    })->name('shops');
    $router->get('contact_us', function () {
        return view('contact_us');
    })->name('contact_us');
    $router->get('crossover', function () {
        return view('crossover');
    })->name('crossover');
    $router->get('crossover_demo/{id}', function ($id) {
        return view("crossover_demo_{$id}");
    })->name('crossover.demo');
    $router->get('faq', function () {
        return view('faq');
    })->name('faq');
    $router->get('quality', function () {
        return view('quality');
    })->name('quality');
    $router->get('about_zoff', function () {
        return view('about_zoff');
    })->name('about_zoff');
});


